package com.vo;

import com.po.Alltype;
import com.po.Coach;

import java.sql.Timestamp;

/**
 * Created by 阳幸子 on 2018/5/8.
 */
public class Course {
    private long id;

    private String courseName;

    private Alltype courseType;

    private String courseDesc;

    private Coach coach;

    private Timestamp startTime;

    private Timestamp endTime;

    private int likeCount;

    private int commentCount;


    private String ctype;
    public String photo;

    public int getCommentCount() {
        return commentCount;
    }

    public Course setCommentCount(int commentCount) {
        this.commentCount = commentCount;
        return this;
    }

    public Coach getCoach() {
        return coach;
    }

    public Course setCoach(Coach coach) {
        this.coach = coach;
        return this;
    }

    public String getPhoto() {
        return photo;
    }

    public Course setPhoto(String photo) {
        this.photo = photo;
        return this;
    }

    public String getCourseDesc() {
        return courseDesc;
    }

    public Course setCourseDesc(String courseDesc) {
        this.courseDesc = courseDesc;
        return this;
    }

    public String getCourseName() {
        return courseName;
    }

    public Course setCourseName(String courseName) {
        this.courseName = courseName;
        return this;
    }

    public Alltype getCourseType() {
        return courseType;
    }

    public Course setCourseType(Alltype courseType) {
        this.courseType = courseType;
        return this;
    }

    public String getCtype() {
        return ctype;
    }

    public Course setCtype(String ctype) {
        this.ctype = ctype;
        return this;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public Course setEndTime(Timestamp endTime) {
        this.endTime = endTime;
        return this;
    }

    public long getId() {
        return id;
    }

    public Course setId(long id) {
        this.id = id;
        return this;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public Course setLikeCount(int likeCount) {
        this.likeCount = likeCount;
        return this;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public Course setStartTime(Timestamp startTime) {
        this.startTime = startTime;
        return this;
    }

    @Override
    public String toString() {
        return "Course{" +
                "coach=" + coach +
                ", id=" + id +
                ", courseName='" + courseName + '\'' +
                ", courseType=" + courseType +
                ", courseDesc='" + courseDesc + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", likeCount=" + likeCount +
                ", ctype='" + ctype + '\'' +
                ", photo='" + photo + '\'' +
                '}';
    }
}
